package com.hz.airline.dao;

import com.hz.airline.entity.UserOrder;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * Created by kevin on 2020/2/2 17:06
 */
public interface UserOrderDao extends CrudRepository<UserOrder, Integer> {

    UserOrder findByOrderid(String orderid);

    List<UserOrder> findAllByUseridAndOrderstatus(String userid, int orderstatus);
}
